import request from '@/utils/request'

// 查询应急培训列表
export function listSysEmergencyTrainingInfo(query) {
    return request({
        url: '/emergency/sysEmergencyTrainingInfo/list',
        method: 'get',
        params: query
    })
}

// 查询应急培训详细
export function getSysEmergencyTrainingInfo(id) {
    return request({
        url: '/emergency/sysEmergencyTrainingInfo/' + id,
        method: 'get'
    })
}

// 新增应急培训
export function addSysEmergencyTrainingInfo(data) {
    return request({
        url: '/emergency/sysEmergencyTrainingInfo',
        method: 'post',
        data: data
    })
}

// 修改应急培训
export function updateSysEmergencyTrainingInfo(data) {
    return request({
        url: '/emergency/sysEmergencyTrainingInfo',
        method: 'put',
        data: data
    })
}

// 删除应急培训
export function delSysEmergencyTrainingInfo(id) {
    return request({
        url: '/emergency/sysEmergencyTrainingInfo/' + id,
        method: 'delete'
    })
}
